import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import userApi from './mockServeData/user'
import permissionApi from './mockServeData/permission'
// 这个文件负责接口数据拦截

// 通过这个接口获得假数据
// 接口 请求方法 回调函数
// Mock.mock('/home/getData',homeApi.getStatisticalData)
Mock.mock(/home\/del/,'get',homeApi.deleteLog)
Mock.mock(/home\/getData/,homeApi.getStatisticalData)



Mock.mock(/user\/add/,'post',userApi.createUser)
Mock.mock(/user\/edit/,'post',userApi.updateUser)

Mock.mock(/user\/getUser/,'get',userApi.getUserList)
Mock.mock(/user\/del/,'get',userApi.deleteUser)

Mock.mock(/permission\/getMenu/,'post',permissionApi.getMenu)



